using System.Diagnostics.Contracts;
using ClientOverflow.ViewModels.Services;

namespace ClientOverflow.ViewModels
{
    /// <summary>
    /// ServicesFactory is a facotry for creating communication services. The factory creates instances
    /// of IClientOverflowService, which is a service used to pass messages between the server and the
    /// client side.
    /// </summary>
    public static class ServicesFactory
    {
        public static IClientOverflowService CreateClientOverflowServiceClient()
        {
            Contract.Ensures(Contract.Result<IClientOverflowService>() != null);
            return new ClientOverflowServiceClient();
        }
    }
}